/*
 * @Author: Qimu
 * @Date: 2020-04-12 01:34:18
 * @LastEditors: Qimu
 * @LastEditTime: 2020-07-16 01:10:56
 * @Description: file content
 * @FilePath: \vue-admin-koa2\koa2_api\module\config\config.js
 */
const config = {
  admin: {
    username: '',
    password: '',
    name: ''
  },
  accessJwt: {
    secret: 'lsl', //密匙
    expiresIn: '8h' //过期时间以秒为单位
  },
  // refreshJwt: {
  //   secret: 'xyq', //密匙
  //   expiresIn: '1h' //过期时间以秒为单位
  // },
  mongodb: {
    host: '127.0.0.1',  //数据库服务器地址         
    database: 'koaApi', //数据库名称
    port: 30000, //端口
    user: 'admin',    //非必填
    password: 'xyq520lsl', //非必填
    table: 'qc.'//表|集合前缀
  },
  app: {
    host: 'http://127.0.0.1',  //后台前端服务器地址 
    port: process.env.PORT || 5000, //请求端口
    baseApi: '/api' //前缀
  },
  staticPath: '/public' //静态资源路径
};

module.exports = config;
